home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
rjs.lha
/
RJS
/
String
/
src
/
op_divequal.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-14
|
722b
|
54 lines
#include "String.h"
RJS_String &RJS_String::operator /= (char ch)
{
int pos;
find(ch,pos);
while (pos!=-1) {
remove(pos,1);
find(ch,pos);
}
return *this;
}
RJS_String &RJS_String::operator /= (const char *s)
{
int pos,len=RJS_String::length(s);
find(s,pos);
while (pos!=-1) {
remove(pos,len);
find(s,pos);
}
return *this;
}
RJS_String &RJS_String::operator /= (const RJS_String &s)
{
int pos;
find(s,pos);
while (pos!=-1) {
remove(pos,s.length());
find(s,pos);
}
return *this;
}
RJS_String &RJS_String::operator /= (const RJS_StringSearch &ss)
{
int pos,len;
find(ss,pos,len);
while (pos!=-1) {
remove(pos,len);
find(ss,pos,len);
}
return *this;
}